package edu.xmut.yuepai.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName sys_picture
 */
@TableName(value = "sys_picture")
@Data
public class SysPicture implements Serializable {
    /**
     * 图片id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 关联的动态 ID
     */
    @TableField(value = "blog_id")
    private Long blogId;

    /**
     * 关联的约拍ID
     */
    @TableField(value = "yuepai_id")
    private Long yuepaiId;

    /**
     * 默认图片的 URL
     */
    @TableField(value = "default_url")
    private String defaultUrl;

    /**
     * 预览的图片 URL
     */
    @TableField(value = "preview_url")
    private String previewUrl;

    /**
     * 图片的宽
     */
    @TableField(value = "width")
    private Integer width;

    /**
     * 图片的高
     */
    @TableField(value = "height")
    private Integer height;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 是否删除（0-否，1-是）
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}